import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;

public class Test02 {
    public static void main(String[] args) throws Exception {
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("D:\\MP\\question\\input\\Test1.txt")));
        String[] address = {"北京", "上海", "广州", "深圳"};
        for (int i = 0; i < 100; i++) {
            int rand1 = (int) (Math.random() * 4);
            int rand2 = (int) (Math.random() * 12)+1;
            double riskValue = Math.random() * 100;
            bw.write(address[rand1] + "\t" + rand2 + "\t" + riskValue);
            bw.write("\n");
            bw.flush();
        }
        bw.close();
    }
}
